<div class="tableToolbar">
    <div class="coll-md-9" id="addInput">
        <div class="coll-md-2">
            <input type="text" class='search' placeholder="用户名" ng-model="ctrlScope.itemsearch.username">
        </div>
        <div class="coll-md-1 scalenone" id="search2">
            <div class="coll-md-10 triangle">
                <select class="form-control" ng-model="ctrlScope.itemsearch.realnameStatus">
                    <option selected hidden disabled value="">实名状态</option>
                    <option value="1">已认证</option>
                    <option value="0">未认证</option>
                </select>
            </div>
        </div>
        <div class="coll-md-4 scalenone"  id="searchdate" datahide>
            <div class="coll-md-5" >
                <p class="input-group">
                    <input type="text" class="search" placeholder="添加开始时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.beginDateTimex" is-open="popup1.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open1()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
            <div class="coll-md-5">
                <p class="input-group inline">
                    <input type="text" class="search" placeholder="添加结束时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.endDateTimex" is-open="popup2.opened" datepicker-options="dateOptions"/>
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open2()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
        </div>
        <div class="coll-md-2">
            <input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
            <input type="button" class="small-icon search2" value="搜索">
            <input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
            <input type="button" class="small-icon reset" value="重置">

            <div class="dropdown-menu-right">
                <input type="button" class="small-icon more-icon" value="更多" title='更多搜索项' id="more-icon" data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false">
                <input type="button" class="small-icon more" value="更多">
                <ul class="dropdown-menu" style='margin-left:80px;' aria-labelledby="dropdownMenu2" more-search>
                    <li><a href="javascript:;">日期搜索</a></li>
                    <li><a href="javascript:;">其他条件搜索</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="coll-md-1">
        <input type="button" class="bttn pos-right"  ng-click="addOrderModal()" value="新建">
    </div>
</div>
<table ui-table="orderParams">
    <thead>
    <tr>

        <th>ID</th>
        <th>用户名</th>
        <th>手机号码</th>
        <th>企业全称</th>
        <th>营业执照号</th>
        <th>添加时间</th>
        <th>企业认证状态</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>

    <tr ng-repeat="item in orderParams.$rows">
        <td>{{item.id}}</td>
        <td>{{item.sysUserName}}</td>
        <td>{{item.userMobile}}</td>
        <td>{{item.enterpriseFullName}}</td>
        <td>{{item.businessLicense}}</td>
        <td>{{item.addtime | date: 'yyyy-MM-dd HH:mm:ss'}}</td>
        <td>{{item.realnameStatus | realnameStatus}}</td>
        <td>
            <a ng-if='item.realnameStatus==0' ng-click="identify(item.id)">认证</a>
            <a ng-if='item.realnameStatus==1' ng-click="modify(item.id)">修改</a>
            <a ng-click="xfInformation(item.id)">先锋信息</a>
            <!--<a ng-if='item.bankStatus==0' ng-click="card(item.id)">绑卡</a>-->
            <!--<span ng-if='item.bankStatus==1'>已绑卡</span>-->
        </td>
    </tr>
    </tbody>
</table>
<modal title="新建" visible="addModal">
    <form class="form-horizontal" role="form" name="myForm" ng-submit="addSubmit(myForm.$valid)" novalidate>
        <div class="form-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">用户名</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add.sysUserName" placeholder="用户名" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">密码</label>

                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add.password" placeholder="密码" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="buttonArea col-md-12">
                <button type="submit" class="btn blue" ng-disabled="myForm.$invalid">提交</button>
            </div>

        </div>
    </form>
</modal>
<modal title="认证" visible="identifyModel">
    <form class="form-horizontal" role="form" name="myForm" ng-submit="identifySubmit(myForm.$valid)" novalidate>
        <div class="form-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">企业全称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.enterpriseFullName" placeholder="企业全称" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">营业执照号</label>

                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.businessLicense" placeholder="营业执照号" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">联系手机</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.agentPersonPhone" placeholder="联系手机" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">银行名称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.bankName" placeholder="银行名称" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">

                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">银行卡号</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.cardNo" placeholder="银行卡号" required >
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">开户省</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.province" placeholder="开户省" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">

                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">开户市</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.city" placeholder="开户市" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">组织机构代码</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.organCode" placeholder="组织机构代码" required>
                        </div>
                    </div>
                </div>

            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">开户名</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.bankCardName" placeholder="开户名" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">银行简称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.bankCode" placeholder="英文缩写" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">公司地址</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.address" placeholder="公司地址" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">法人姓名</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.legalName" placeholder="法人姓名" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">法人身份证</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.legalNo" placeholder="法人身份证" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">支行名称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.subBranch" placeholder="支行名称" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">支行联号</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.issuer" placeholder="支行联号" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="buttonArea col-md-12">
                <button type="submit" class="btn blue" ng-disabled="myForm.$invalid">提交</button>
            </div>

        </div>
    </form>
</modal>

<modal title="修改" visible="modifyModal">
    <form class="form-horizontal" role="form" name="myForm" ng-submit="modifySubmit(myForm.$valid)" novalidate>
        <div class="form-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">企业全称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.enterpriseFullName" placeholder="企业全称" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">营业执照号</label>

                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.businessLicense" placeholder="营业执照号" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">联系手机</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.agentPersonPhone" placeholder="联系手机" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">银行名称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.bankName" placeholder="银行名称" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">

                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">银行卡号</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.cardNo" placeholder="银行卡号" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">开户省</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.province" placeholder="开户省" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">

                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">开户市</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.city" placeholder="开户市" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">组织机构代码</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.organCode" placeholder="组织机构代码" required>
                        </div>
                    </div>
                </div>

            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">开户名</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.bankCardName" placeholder="开户名" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">银行简称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.bankCode" placeholder="英文缩写" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">公司地址</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.address" placeholder="公司地址" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">法人姓名</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.legalName" placeholder="法人姓名" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">法人身份证</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.legalNo" placeholder="法人身份证" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">支行名称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.subBranch" placeholder="支行名称" required>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">支行联号</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.issuer" placeholder="支行联号" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">新银行卡</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="add1.newBankCardNo" placeholder="新银行卡">
                        </div>
                    </div>
                </div>
            </div>
            <div class="buttonArea col-md-12">
                <button type="submit" class="btn blue" ng-disabled="myForm.$invalid">提交</button>
            </div>

        </div>
    </form>
</modal>

